/**
 * === zhs Auto js =========================================================================
 * Copyright (c) 2017 raymon, All rights reserved.
 * 
 * @version 1.0
 * @author	raymon <raymonguo@outlook.com>
 * @description 智慧树刷课脚本
 * ---2017.04.07 ----------------------------
 */
var Interval = setInterval(  "zhsAuto()", 3000 ); //设置一个30s的定时器
function zhsAuto(){
	$("a.popboxes_close").click();  //关闭弹题
	var currenttime = $(".currentTime").text(); //当前播放进度
	var duration = $(".duration").text(); //结束时间
	console.log('当前播放到:' + currenttime);
	if( currenttime == duration ){ //这一章节观看结束
		$("div.tm_next_lesson>a").click(); //进入下一节
		console.log('进入下一节');
	}
}


clearInterval( Interval ); //这段用于停止刷题